Skip to content

Conversation

@JaimeRZP
Copy link
Contributor

@JaimeRZP JaimeRZP commented Apr 8, 2025

New Features

  • unmixing.py: contains 3 methods to unmix E and B modes
    • heracles.forwards(t, M): applies the mixing matrix to full sky theory to go to partial sky
    • heracles.inversion(d, M): inverts the mixing matrix in partial sky data to go to full sky
    • heracles.natural_unmixing(d, M): divides the real space correlation function of partial sky data by the correlation function of the mask to go to full sky.
  • unmixing.ipynb: a full tutorial of the methods that builds up from the main tutorial. It also shows how to combine the forwards and inversion methods to do the master method.

Known issues

  • The functions that move between Cl's and corr's are not very heracles like and could be streamlined.
  • We don't have built in function in heracles to do bin the mixing matrix.

@JaimeRZP JaimeRZP requested a review from ntessore April 9, 2025 12:13
@JaimeRZP
Copy link
Contributor Author

pre-commit.ci autofix

@codecov
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

❌ Patch coverage is 71.02804% with 62 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
heracles/unmixing.py 63.41% 60 Missing ⚠️
heracles/transforms.py 71.42% 2 Missing ⚠️
Flag Coverage Δ
py3.10 80.88% <71.02%> (-1.35%) ⬇️
py3.11 80.88% <71.02%> (-1.35%) ⬇️
py3.12 80.84% <71.02%> (-1.35%) ⬇️
py3.13 80.84% <71.02%> (-1.35%) ⬇️
py3.9 80.91% <71.02%> (-1.35%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
heracles/__init__.py 82.35% <100.00%> (+2.35%) ⬆️
heracles/dices/__init__.py 100.00% <ø> (ø)
heracles/dices/jackknife.py 97.22% <100.00%> (+0.28%) ⬆️
heracles/dices/shrinkage.py 100.00% <100.00%> (ø)
heracles/dices/utils.py 100.00% <100.00%> (ø)
heracles/transforms.py 84.31% <71.42%> (ø)
heracles/unmixing.py 63.41% <63.41%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JaimeRZP JaimeRZP self-assigned this May 2, 2025
@JaimeRZP JaimeRZP added the enhancement New feature or request label May 2, 2025
@ntessore ntessore changed the title gh-256 unmixing gh-256: unmixing May 12, 2025
@ntessore ntessore linked an issue May 12, 2025 that may be closed by this pull request
@JaimeRZP
Copy link
Contributor Author

JaimeRZP commented Jul 1, 2025

Deprecated in favor of #287

@JaimeRZP JaimeRZP closed this Jul 1, 2025
@JaimeRZP JaimeRZP deleted the 256-unmixing branch July 1, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mask unmixing

3 participants